Automattic\WooCommerce\Blocks\BlockTemplatesController C

Total Complexity 112
Dependencies 7
Dependents 1
Total lines 640
Lines of code 363
Logical lines of code 203
Comment lines 189
Methods 16
Properties 3

Methods 16

Method Rating Maintainability Complexity Lines of code
render_block_template()
D
38 33 61
add_block_templates()
B
38 23 64
get_block_templates_from_woocommerce()
A
43 11 50
get_block_file_template()
A
47 8 34
get_block_template_fallback()
S
46 6 37
remove_block_template_support_for_shop_page()
S
60 6 13
get_block_templates_from_db()
S
52 3 25
check_should_use_blockified_product_grid_templates()
S
64 4 10
update_product_archive_title()
S
64 4 10
__construct()
S
63 3 9
block_template_is_available()
S
65 3 9
add_archive_product_to_eligible_for_fallback_templates()
S
61 2 14
init()
S
60 2 12
get_templates_directory()
S
72 2 6
get_block_templates()
S
70 1 6
get_template_path_from_woocommerce()
S
78 1 3